package com.by.controller;

import com.by.bean.Forwarder;
import com.by.bean.ForwarderQuote;
import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.service.impl.ForwarderQuoteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "询价-货代")
@RequestMapping("/api")
public class ForwarderQuoteController extends BaseController {

    @Autowired
    private ForwarderQuoteService forwarderQuoteService;
    @PostMapping("/forwarderQuote")
    @ApiOperation("货代报价")
    public ResultBean save(@RequestBody ForwarderQuote forwarderQuote) {
        int rs = forwarderQuoteService.save(forwarderQuote);
        return saveResult(rs);
    }
}
